package com.fms.model.factory;

import com.fms.model.domain.FlowSheet;
import com.fms.model.factory.parts.IDateSelector;
import com.fms.model.factory.parts.IFileNameSupplier;

public class GeneralFactory implements IFlowSheetFactory
{
	private IFileNameSupplier fileSupply;
	private IDateSelector dateSelector; 

	public GeneralFactory(	IFileNameSupplier _fileSupply,
							IDateSelector _dateSelector)
	{
		fileSupply = _fileSupply;
		dateSelector = _dateSelector;
	}

	public FlowSheet newSheet()
	{
		FlowSheet newSheet = new FlowSheet(fileSupply.getFile());
		newSheet.setDate(dateSelector.getTime());
		return newSheet;
	}

	

}
